package com.heima.homeservicemanagementsystem.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.tags.Tag;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * 服务分类;
 *
 * @author : http://www.chiner.pro
 * @date : 2025-4-4
 */
@Data
/*@ApiModel(value = "服务分类",description = "")*/
@Tag(name = "服务分类")
@TableName("service_classification")
@EqualsAndHashCode(callSuper = false)
public class ServiceClassification extends BaseEntity {

    @Schema(title = "服务种类", description = "")
    private Integer type;

    @Schema(title = "分类名字", description = "")
    private String flName;

    @Schema(title = "分类照片", description = "")
    private String flImage;

    @Schema(title = "父亲ID", description = "")
    private String parentId;

    @TableField(exist = false)
    @Schema(description = "角色列表", hidden = true)
    private ServiceClassification parentName;
    @TableField(exist = false)
    @Schema(description = "子级服务", hidden = true)
    private List<ServiceClassification> children;

}